package edu.zqu.collegeField.project.service;


import com.baomidou.mybatisplus.extension.service.IService;
import edu.zqu.collegeField.project.dto.FieldTypeDto;
import edu.zqu.collegeField.project.po.FieldType;
import edu.zqu.collegeField.project.vo.FieldTypeVo;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 场地类型 服务类
 * </p>
 *
 * @author 廖森
 * @since 2020-06-28
 */
public interface FieldTypeService extends IService<FieldType> {
    List<FieldTypeVo> get(BigInteger collegeId, String name);//获取场地类型列表

    FieldTypeVo getById(BigInteger id);//获取场地类型

    FieldTypeVo getByName(BigInteger collegeId,String name);//获取场地类型

    String getNameById(BigInteger id);//获取场地类型名称

    int add(FieldType fieldType);//添加场地类型

    int update(FieldType fieldType);//更新场地类型

    int delete(Integer id, BigInteger byWho);
}
